package com.glp.services.impl;

import com.glp.dao.custom.RoleMapper;
import com.glp.pojo.Role;
import com.glp.services.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;


    @Override
    public Role getRoleByUserId(Integer userId) {
        return roleMapper.selectByPrimaryKey(userId);
    }
}
